﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Prism.Events;
using Autorent.Desktop.Model.Services;
using Autorent.Desktop.Modules.Offices.Services;
using Autorent.Desktop.Modules.Offices.Views;

namespace Autorent.Desktop.Modules.Offices
{
    /// <summary>
    /// The module contains work with offices. Create, Update, Delete and Search.
    /// </summary>
    [Module(ModuleName = "OfficesModule")]
    public class OfficesModule : IModule
    {
        private readonly IUnityContainer _container;
        private readonly IRegionManager _regionManager;

        public OfficesModule(IUnityContainer container, IRegionManager regionManager)
        {
            _container = container;
            _regionManager = regionManager;
        }

        public void Initialize()
        {
            _container.RegisterType(typeof(IOfficesRepository), typeof(OfficesRepository));

            //_regionManager.RegisterViewWithRegion("ContentRegion", typeof(OfficesListView));
        }
    }
}
